<?php

//$file = Yii::getPathOfAlias('webroot')."/protected/views/home/sms/fibosmsserver.txt";
//$r = file_get_contents('shop.txt',$file);
//echo $r;
return CMap::mergeArray(
                require(dirname(__FILE__) . '/main.php'), array(
            // Put front-end settings there
            // (for example, url rules).

            'components' => array(
                // uncomment the following to enable URLs in path-format
                'urlManager' => array(
                    'urlFormat' => 'path',
                    //'showScriptName'=>false,
                    //'caseSensitive'=>false,   
                    'rules' => array(
                        //site
                       
                        '' => 'site/index',
                        'e-ckeditor' => 'demo/Demo',
                        'check-out' => 'payoo/Checkout',
                        'page/<url:[0-9a-zA-Z_-]+>' => 'site/Page',
                        'thoat-he-thong' => 'site/thoat',
                        'gui-dang-ky' => 'site/index',
                        'dang-nhap' => 'site/loginweb',
                        'doanh-nghiep/<id:[0-9a-zA-Z_-]+>/<url:[0-9a-zA-Z_-]+>' => 'site/Doanhnghiep',
                        'tim-dia-diem' => 'site/timkiem',
                        'tim-dia-diem/<id:[0-9a-zA-Z_-]+>' => 'site/timkiem1',
                        'thong-bao/<ketqua:[0-9a-zA-Z_-]+>' => 'site/Thongbao',
                        'thong-bao-giao-dich/<st:[0-9a-zA-Z_-]+>/<or:[0-9a-zA-Z_-]+>' => 'site/Thongbaogiaodich',
                        'danh-muc/<url:[0-9a-zA-Z_-]+>' => 'site/danhmuc',
                        'noi-dung/<id:[0-9a-zA-Z_-]+>/<ip:[0-9a-zA-Z_-]+>' => 'site/detail',
                        //manager
                        'lich-su-giao-dich'=>'manager/Lichsugiaodich',
                        'mua-quang-cao' =>'manager/Muaquangcao',
                        'mua-quang-cao-loai/<k:[0-9a-zA-Z_-]+>' =>'manager/Muaquangcao1',
                        'danh-sach-page' => 'manager/List_Page',
                        'them-page' =>'manager/AddPage',
                        'them-slider' => 'manager/AddSlider',
                        'danh-sach-slider' => 'manager/List_slider',
                        'Chuong-trinh-game-show' => 'manager/List_game',
                        'them-chuong-trinh' => 'manager/AddGame',
                        'ca-nhan' => 'manager/taikhoan',
                        'thong-tin-ca-nhan' => 'manager/UpdateUser',
                        'doi-mat-khau' => 'manager/Changepass',
                        'dang-ky' => 'manager/dangky',
                        'cai-dat-qua' => 'manager/AddPhanqua',
                        'danh-sach-san-pham' => 'manager/List_Product',
                        'them-san-pham' => 'manager/AddProduct',
                        'xem-san-pham/<id:[0-9a-zA-Z_-]+>' => 'manager/UpdateProduct',
                        'xoa-san-pham/<id:[0-9a-zA-Z_-]+>' => 'manager/DeleteProduct',
                        'danh-sach-panel' => 'manager/List_Panel',
                        'them-panel' => 'manager/AddPanel',
                        'xem-panel/<id:[0-9a-zA-Z_-]+>' => 'manager/UpdatePanel',
                        'xoa-panel/<id:[0-9a-zA-Z_-]+>' => 'manager/DeletePanel',
                        'xem-page/<id:[0-9a-zA-Z_-]+>' => 'manager/UpdatePage',
                        'xoa-page/<id:[0-9a-zA-Z_-]+>' => 'manager/DeletePage',
                        
                        'danh-sach-doi-tac' => 'manager/List_Doitac',
                        'them-doi-tac' => 'manager/AddDoitac',
                        'xem-doi-tac/<id:[0-9a-zA-Z_-]+>' => 'manager/UpdateDoitac',
                        'xoa-doi-tac/<id:[0-9a-zA-Z_-]+>' => 'manager/DeleteDoitac',
                        
                        'danh-sach-giai-tri' => 'manager/List_Giaitri',
                        'them-giai-tri' => 'manager/AddGiaitri',
                        'xem-giai-tri/<id:[0-9a-zA-Z_-]+>' => 'manager/UpdateGiaitri',
                        'xoa-giai-tri/<id:[0-9a-zA-Z_-]+>' => 'manager/DeleteGiaitri',
                        
                        'xem-slider/<id:[0-9a-zA-Z_-]+>' => 'manager/UpdateSlider',
                        'xoa-slider/<id:[0-9a-zA-Z_-]+>' => 'manager/DeleteSlider',
                        'xem-chuong-trinh/<id:[0-9a-zA-Z_-]+>' => 'manager/UpdateProgram',
                        'xoa-chuong-trinh/<id:[0-9a-zA-Z_-]+>' => 'manager/DeleteProgam',
                        'xem-phanqua/<id:[0-9a-zA-Z_-]+>' => 'manager/UpdatePhanqua',
                        'xoa-phanqua/<id:[0-9a-zA-Z_-]+>' => 'manager/XoaPhanqua',
                        'so-nguoi-tham-gia' => 'manager/List_People',
                        //sms
                        'kich-hoat-khuyen-mai' => 'sms/sms',
                        'kich-hoat-khuyen-mai-local' => 'sms/sms1',
                        //gian hang
                        'danh-sach-shop' => 'manager/List_Parner',
                        'them-shop' => 'manager/AddParner',
                        'xem-shop/<id:[0-9a-zA-Z_-]+>' => 'manager/UpdateParner',
                        'xoa-shop/<id:[0-9a-zA-Z_-]+>' => 'manager/DeleteParner',
                        
                        
                        'danh-sach-city'=>'manager/AddCity',
                        'xem-city-shop/<id:[0-9a-zA-Z_-]+>'=>'manager/UpdateCity',
                        'xoa-city-shop/<id:[0-9a-zA-Z_-]+>'=>'manager/DeleteCity',
                        'gian-hang-menu'=>'manager/ListMenu',
                        'danh-sach-menu/<id:[0-9a-zA-Z_-]+>'=>'manager/DsMenu',
                        'them-menu' => 'manager/AddMenu',
                        'xem-menu-shop/<id:[0-9a-zA-Z_-]+>'=>'manager/UpdateMenu',
                        'xoa-menu-shop/<id:[0-9a-zA-Z_-]+>'=>'manager/DeleteMenu',
                        
                        'gian-hang-danh-muc'=>'manager/ListCategory',
                        'danh-sach-danh-muc/<id:[0-9a-zA-Z_-]+>'=>'manager/DsCategory',
                        'them-danh-muc' => 'manager/AddCategory',
                        'xem-category-shop/<id:[0-9a-zA-Z_-]+>'=>'manager/UpdateCategory',
                        'xoa-category-shop/<id:[0-9a-zA-Z_-]+>'=>'manager/DeleteCategory',
                        
                        'gian-hang-slider'=>'manager/ListSlider',
                        'danh-sach-slider-shop/<id:[0-9a-zA-Z_-]+>'=>'manager/DsSlider',
                        'them-slider-shop' => 'manager/AddSliderShop',
                        'xem-slider-shop/<id:[0-9a-zA-Z_-]+>'=>'manager/UpdateSliderShop',
                        'xoa-slider-shop/<id:[0-9a-zA-Z_-]+>'=>'manager/DeleteSliderShop',
                        
                        'gian-hang-page'=>'manager/ListPageshop',
                        'danh-sach-page-shop/<id:[0-9a-zA-Z_-]+>'=>'manager/DsPageshop',
                        'them-page-shop' => 'manager/AddPageshop',
                        'xem-page-shop/<id:[0-9a-zA-Z_-]+>'=>'manager/UpdatePageshop',
                        'xoa-page-shop/<id:[0-9a-zA-Z_-]+>'=>'manager/DeletePageshop',
                        
                        'gian-hang-product'=>'manager/ListProductshop',
                        'danh-sach-product-shop/<id:[0-9a-zA-Z_-]+>'=>'manager/DsProductshop',
                        'them-product-shop' => 'manager/AddProductshop',
                        'xem-product-shop/<id:[0-9a-zA-Z_-]+>'=>'manager/UpdateProductshop',
                        'xoa-product-shop/<id:[0-9a-zA-Z_-]+>'=>'manager/DeleteProductshop',
                        
                        'gian-hang-quang-cao'=>'manager/Listpanelshop',
                        'danh-sach-banner-shop/<id:[0-9a-zA-Z_-]+>'=>'manager/DsPanelshop',
                        'them-baner-shop' => 'manager/AddPanelshop',
                        'xem-banner-shop/<id:[0-9a-zA-Z_-]+>'=>'manager/UpdatePanelshop',
                        'xoa-banner-shop/<id:[0-9a-zA-Z_-]+>'=>'manager/DeletePanelshop',
                        
                        
                     
                        'shop' => 'shopping/index',
                        'shop/<id:[0-9a-zA-Z_-]+>' => 'shopping/home',
                        'shop/<id:[0-9a-zA-Z_-]+>/danh-muc/<url:[0-9a-zA-Z_-]+>' => 'shopping/danhmuc',
                        'shop/<id:[0-9a-zA-Z_-]+>/dang-nhap' => 'shopping/loginweb',
                        'shop/<id:[0-9a-zA-Z_-]+>/tim-dia-diem' => 'shopping/timkiem',
                        'shop/<id:[0-9a-zA-Z_-]+>/tim-dia-diem/<k:[0-9a-zA-Z_-]+>' => 'shopping/timkiem1',
                        'shop/<id:[0-9a-zA-Z_-]+>/thong-bao/<ketqua:[0-9a-zA-Z_-]+>' => 'shopping/Thongbao',
                        'shop/<id:[0-9a-zA-Z_-]+>/noi-dung/<k:[0-9a-zA-Z_-]+>/<ip:[0-9a-zA-Z_-]+>' => 'shopping/detail',
                        'shop/<id:[0-9a-zA-Z_-]+>/page/<url:[0-9a-zA-Z_-]+>' => 'shopping/XemPage',
                       
                    ),
                ),
            ),
                )
);
?>